// Get DATA
$(document).ready(function () {
    $.ajax({
        type: "GET",
        url: "http://www.cinemark.cl/flashhomesala3d.xml",
        dataType: "xml",
        success: xmlFeaturedsala3d,
        complete: function() {
			$('#slide-sala3d').innerfade({ speed: 750, timeout: 2000, type: 'sequence', containerheight: '1em' }); 
			}
    });

});

function xmlFeaturedsala3d(xml) {
    $('#loader-slidesala3d').remove();
    $(xml).find("item").each(function (i) {
		var imgSrc = $(this).find("image_url_original").text();
		var imgLink = $(this).find("link").text();
		$("#slide-sala3d").append('<li><a href="'+imgLink+'"><img id="slide-'+i+'" src="'+imgSrc+'" alt="'+imgLink+'" /></a></li>');
    });
}
